﻿<%@ page import="java.util.Calendar" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<%--
  Created by IntelliJ IDEA.
  User: gongximing
  Date: 2016/4/25
  Time: 9:36
  To change this template use File | Settings | File Templates.

<%Calendar nowTime = Calendar.getInstance();
        nowTime.add(Calendar.MINUTE, 45);
  SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
%>

--%>
<html>
<head>
  <title>H5支付模拟提交</title>
  <style type="text/css">.form-input {
    font-weight: 500;
    font-size: 100%;
    height: 30px;
    width: 300px;
  }
  .form-button{
    width: 80px;
    height: 30px;;
    color: black;
    font-size: 15px;
    font-weight: 400;
    border:1px solid ;
  }
  </style>

</head>
<body>
<form name="toH5" action="/success" method="post" autocomplete="off" target="_self" >
  <table align="center">
    <tr>
      <th colspan="4"><h2>移动端商城订单支付模拟提交</h2></th>
    </tr>
    <tr>
      <td>pin</td>
      <td><input class="form-input" name="pin" type="text" value="gxm2016"></td>
        <td rowspan="9">&nbsp;&nbsp;&nbsp;</td>
      <td align="center">订单信息</td>
    </tr>
    <tr>
      <td>订单号</td>
      <td><input class="form-input" name="orderId" type="text"></td>
      <td rowspan="8"><textarea class="form-textarea" name="orderInfo" cols="70" rows="16">{"risk":{"gatewayCode":"0","isSource":"0","code":"0","control":"0","description":"0","riskId":"0"},"order":{"pin":"p2p_test002","bizId":"0","orderId":"2016010100001","shopId":"0","orderType":"10000","createDate":"2015-10-28 12:00:00","count":1,"price":12.3,"totalFee":5},"products":[{"id":"001","name":"测试产品名称","cid1":"0","cid2":"0","cid3":"0","type":"1","price":200,"num":6}],"distribution":{"userName":"0","where":"0","mobile":"0","phone":"0","email":"0","provinceId":1,"cityId":3,"areaId":4,"townId":1},"device":{"deviceType":"0","ip":"0","mac":"0","imei":"0","idfv":"0","adid":"0","os":"0","osVersion":"0"},"store":{"offineStoreId":"1","offlineVenderId":"72094"}}
       </textarea></td>
    </tr>
    <tr>
      <td>金额</td>
      <td><input class="form-input" name="total" type="text" value="0.01"></td>
    </tr>
    <tr>
      <td>收银台类型（<label style="color: red">旺财选H5</label>）</td>
      <td><select class="form-input" name="cashierType">
          <option value ="jdcashier">京东收银台</option>
          <option value ="jdpay_h5">京东支付2.0H5</option>
          <option value="jdpay">优先SDK/不支持则H5</option>
        </select>
      </td>
    </tr>
    <tr>
      <td>expiredTime</td>
      <td><input class="form-input" name="expiredTime" type="text" value="20170718173228"></td>
    </tr>
    <tr>
      <td>successUrl</td>
      <td><input class="form-input" name="successUrl" type="text" value="http://m.jd.com"  ></td>
    </tr>
    <tr>
      <td>收银台类型<br/>(<label style="color: red">ordertype/totype/skuMerchant</label>)</td>
      <td><select class="form-input" name="appId">
        <option value ="mallapp">商城(0/10/)</option>
        <option value ="kplpt">开普勒(0/10/)</option>
        <option value="kplqqg">全球购(0/287/)</option>
        <option value="wc">旺财(20070/90/20015)</option>
        <option value="cpzc">产品众筹(20048/220/31001)</option>
        <option value="qzc">轻众筹(20072/220/31002)</option>
        <option value="1">到家(10016/260/)</option>
      </select>
      </td>
    </tr>
    <tr>
      <td>orderType</td>
      <td><input class="form-input" name="orderType" type="text" value="0"></td>
    </tr>
    <tr>
      <td>toType</td>
      <td><input class="form-input" id="toType" name="toType" type="text" value="10"></td>
    </tr>
    <tr>
      <td>skuMerchant(<label style="color: red">金融业务必填</label>)</td>
      <td><input class="form-input" id="skuMerchant" name="skuMerchant" type="text" value=""></td>
    </tr>
    <tr>
      <td>需要指定付款人（<label style="color: red">旺财勾选</label>）</td>
      <td class="form-input">
        <input name="holderLimit" type="checkbox" value="1" />是
      </td>
    </tr>
    <tr>
      <td>取业务方传递信息（<label style="color: red">旺财勾选</label>）</td>
      <td class="form-input">
        <input name="holderInfoSource" type="checkbox" value="1" />是
      </td>
    </tr>
    <tr>
      <td>持卡人姓名（<label style="color: red">旺财填</label>）</td>
      <td><input class="form-input" name="holderName" type="text" value=""  ></td>
    </tr>
    <tr>
      <td>持卡人身份证（<label style="color: red">旺财填</label>）</td>
      <td><input class="form-input" name="holderNo" type="text" value=""  ></td>
    </tr>
    <tr>
      <td>扩展字段（<label style="color: red">测试</label>）</td>
      <td><input class="form-input" name="ext" type="text" value=""  ></td>
    </tr>
  </table>
  <br/>
  <br/>
  <p>
  <div align="center">
    <button type="reset" class="form-button" data-dismiss="modal">重置</button>
    <button class="form-button" type="summit">模拟提交</button>
  </div>
  </p>
</form>
</body>
</html>